package com.zxc.shortlink.core;

import com.zxc.shortlink.consts.StrategyConst;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.UUID;

/**
* @author zxc_user
* @date 2022/3/24 17:06
* @version 1.0
* @description uuid生成策略
**/
@Service(value = StrategyConst.SHORT_BUILD_UUID)
@Slf4j
public class UUIDShortLinkBuildStrategy implements ShortLinkBuildStrategy {
    @Override
    public String build() {
        return UUID.randomUUID().toString().replace("-", "");
    }
}
